package cn.yr.file.api;

import cn.yr.common.core.constant.ServiceNameConstants;
import cn.yr.common.exception.ret.Ret;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author lang 1102076808@qq.com
 * @Description  文件上传
 * @Date 15:42 2021/5/23
 **/
@FeignClient(contextId = "FileApi" , value = ServiceNameConstants.SERVICE_FILE)
public interface FileApi {

    @PostMapping("/file/upload")
    Ret upload(MultipartFile file);

}
